<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security5">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>请登录</title>
    <link rel="stylesheet" th:href="@{/css/signin.css}">
    <link rel="stylesheet" th:href="@{/webjars/bootstrap/5.1.3/css/bootstrap.css}">
    <script th:src="@{/webjars/bootstrap/5.1.3/js/bootstrap.js}"></script>
</head>
</head>
<body class="text-center">

<main class="form-signin">
    <form th:action="@{/login}" th:method="POST">
        <img class="mb-4" th:src="@{/assets/brand/bootstrap-logo.svg}" alt="" width="72" height="57">
        <h1 class="h3 mb-3 fw-normal">请登录</h1>
        <div class="alert alert-danger alert-dismissible fade show">
            <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
            <strong>错误!</strong> 失败的操作。
        </div>
        <div class="form-floating">
            <!--<input type="text" class="form-control" id="floatingInput" name="username" placeholder="请输入账号" autocomplete="off">-->
            <input type="text" class="form-control" id="floatingInput" name="account" placeholder="请输入账号" autocomplete="off">
            <label for="floatingInput">账号</label>
        </div>
        <div class="form-floating">
            <!--<input type="password" class="form-control" id="floatingPassword" name="password" placeholder="请输入账号密码">-->
            <input type="password" class="form-control" id="floatingPassword" name="authString" placeholder="请输入账号密码">
            <label for="floatingPassword">密码</label>
        </div>

        <div class="checkbox mb-3">
            <label>
                <input type="checkbox" name="remember-me"> 记住密码
            </label>
        </div>
        <button class="w-100 btn btn-lg btn-primary" type="submit">登录</button>
        <p class="mt-5 mb-3 text-muted">&copy; 2017–2022</p>
    </form>
</main>
</div>
</body>
</html>